<template>
  <div class="app">
    <div class="base-chart-box">
      这是一个捣乱的盒子{{ username }}
    </div>
    <BaseChart></BaseChart>
    <BaseForm ref="formRef" />
    <button @click="resetForm">重置form表单</button>
  </div>
</template>

<script>
import BaseChart from './components/BaseChart.vue'
import BaseForm from './components/BaseForm.vue';
export default {
  components: {
    BaseChart,
    BaseForm
  },
  data() {
    return {
      username: 'nihao'
    }
  },
  methods: {
    resetForm() {
      console.log(BaseForm)
      console.log(this.$refs.formRef)
      this.$refs.formRef.reset()
    }
  }
}
</script>

<style>
.base-chart-box {
  width: 300px;
  height: 200px;
}
</style>